package com.fahai.web.dao;

import com.fahai.common.CommonMapper;
import com.fahai.web.entity.AllConfig;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 全局变量DAO
 * Created by lilinjun on 17/5/22.
 */
@Repository
public interface AllConfigDao extends CommonMapper<AllConfig> {
    /**
     * 查询全局变量表ALL_CONFIG
     *
     * @param map
     * @return list类型的集合结果
     */
    public List getAllConfigsWithType(Map<String, Object> map);

    /**
     * 停运配置
     * @param map
     */
    public void stopConfig(Map<String, Object> map);

    /**
     * 激活配置
     * @param map
     */
    public void activeConfig(Map<String, Object> map);

    /**
     * 删除配置
     * @param map
     */
    public void deleteConfig(Map<String, Object> map);


}

